import React from 'react'
import viewRouterUtils from '@/ui/antd/service/router/utils/viewRouterUtils'
import ViewRouteDto from '@/ui/antd/service/router/types/model/dto/ViewRouteDto'

// 模块
const routes: ViewRouteDto[] = [
	{
		path: '/oauth2/client/list',
		title: '客户端列表',
		icon: 'fa fa-mobile',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/oauth2/Oauth2RegisteredClientList/Oauth2RegisteredClientList')),
		),
	},
	{
		path: '/oauth2/rest/grant/type/list',
		icon: 'fa fa-shield',
		title: 'Rest认证配置列表',
		element: viewRouterUtils.lazyLoad(
			React.lazy(
				() =>
					import(
						'@/ui/antd/pages/main/view/oauth2/Oauth2RegisteredClientRestGrantTypeList/Oauth2RegisteredClientRestGrantTypeList'
					),
			),
		),
	},
	{
		path: '/oauth2/user/list',
		icon: 'fa fa-id-card',
		title: '客户端账户授权列表',
		element: viewRouterUtils.lazyLoad(
			React.lazy(
				() => import('@/ui/antd/pages/main/view/oauth2/Oauth2RegisteredClientUserInfoList/Oauth2RegisteredClientUserInfoList'),
			),
		),
	},
	{
		path: '/oauth2/authorization/list',
		icon: 'fa fa-shield-check',
		title: '客户端令牌列表',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/oauth2/Oauth2AuthorizationList/Oauth2AuthorizationList')),
		),
	},
] as ViewRouteDto[]

export default routes
